import re

def remove_color_codes(text: str) -> str:
    """
    Remove the color codes from the text.
    
    Args:
        text: The text to remove the color codes from.

    Returns:
        The text with the color codes removed.
    """
    color_pattern = r'\x1b\[[0-9;]*m'  # 匹配颜色控制字符的正则表达式模式
    return re.sub(color_pattern, '', text)
